#include <wx/wx.h>

class Icon : public wxFrame
{
public:
    Icon(const wxString& title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(300, 200))
    {
        SetIcon(wxIcon("icon.ico", wxBITMAP_TYPE_ICO));
    }
};

class MyApp : public wxApp
{
  public:
    virtual bool OnInit()
    {
        Icon *frame = new Icon("Icon Demo");
        frame->Show(true);
        return true;
    }
};

IMPLEMENT_APP(MyApp)
